<!-- financialReimbursementApplication 财务报销申请 -->
<template>
   <div class="main">
    <h5 class="title">行政资产申购</h5>
    <ul class="form-container">
      <li class="form-list" v-for="(item,index) in submit_data.arr" :key="index" v-if="submit_data.arr !== undefined">
        <div v-if="item.class === 1">
          <first-input-box v-model="item.value" :h-placeholder="item.place_holder"></first-input-box>
        </div>
        <div v-else-if="item.class === 2">时间</div>
      </li>
    </ul>
    {{submit_data.arr[0].value}}
    <div class="btn-container">
      <button class="btn">提交</button>
    </div>
  </div>
</template>

<script>
import firstInputBox from '../../assembly/firstInputBox'
import tableData from '@/assets/js/data'
export default {
  name: '',

  data () {
    return {
     submit_data: {}
    }
  },

  components: {
    firstInputBox
  },

  computed: {},

  methods: {},
  created () {
    let type = this.$route.query['type']
    if (type !== undefined && type !== '') {
      console.log(1)
      type = type - 0
      this.submit_data = tableData.table_data.filter(v => {
        return v.type === type
      })[0]
    }
    console.log(this.submit_data)
  },
  mounted () {}
}
</script>
<style lang="stylus" scoped>
</style>
